package com.tensquare.friend.pojo;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name = "tb_friend")
@IdClass(Friend.class)
@Data
public class Friend implements Serializable {

    @Id
    private String userid;//用户ID
    @Id
    private String friendid;//好友ID

    private String islike;//是否互相喜欢 0:单向喜欢，1：双向喜欢
}
